package cevent.source.cloudcenter.system.controller;/**
 * Created by Cevent on 2021/2/20.
 */

import cevent.source.cloudcenter.server.domain.SecondTable;
import cevent.source.cloudcenter.server.service.SecondTableService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author cevent
 * @description
 * @date 2021/2/20 17:27
 */
@RestController
@RequestMapping("/second")
public class SecondTableController {
    private static final String BUSINESS_NAME="系统模块";
    @Resource
    private SecondTableService secondTableService;
    //example查询集合
    @RequestMapping("/tableList")
    public List<SecondTable> secondTableList(){
        return secondTableService.secondTables();
    }
    //example查询byId
    @RequestMapping("/tableById")
    public List<SecondTable> tableById(){
        return secondTableService.secondTableById();
    }
}
